package com.zhangjun.spring.entity.Impl;

import com.zhangjun.spring.entity.Student;
import com.zhangjun.spring.entity.Teacher;

/**
 * @author 张钧
 * @Description
 * @create 2022-09-16 19:37
 */
public class TeacherImpl implements Teacher {

    private String language;

    public void setLanguage(String language) {
        this.language = language;
    }

    @Override
    public String teach(Student student) {
        return student.learn(language);
    }
}
